function setHref(){
    var aArray = $('a');
    var exam = "exam";
    for (var i=0; i < aArray.length; i++) {
       var eachA = $(aArray[i]);
       var index = i + 1;
       eachA.attr('href', exam + index);
    };
}
